lcPaint_PtbufAddEllipse Home

Adds a set of points into a points buffer. The points represent an ellipse or elliptical arc shape.

 BOOL lcPaint_PtbufAddEllipse (
   HANDLE hPtbuf,
   double Xc,
   double Yc,
   double Rmaj,
   double Rmin,
   double RotAngle,
   double StartAngle,
   double ArcAngle,
   int Resol
 );

Parameters
hPtbuf
  Handle to points buffer.
Xc Yc
  Ellipse center point coordinates.
Rmaj
  Major radius (half-length of major axis).
Rmin
  Minor radius (half-length of minor axis).
RotAngle
  Rotation angle of major axis.
StartAngle
  For elliptical arc. Start angle of the arc, relative to major axis.
ArcAngle
  For elliptical arc. Included angle of the arc.
Negative value means clockwise arc's direction from the start angle, Positive value means counter-clockwise direction.
Resol
  Ellipse resolution. The value means a number of points per 360 degrees.
Can be only the following vales: 16, 32, 64, 128, 256, 512.

Return Value

  If the function succeeds, the return value is nonzero (TRUE).

Remarks

  For full ellipse, specify zero for StartAngle and ArcAngle parameters.
To know the number of points was added by this function, read the global property LC_PROP_G_PTBUFNEWPTS just after the function execution.

See Also

  lcPaint_PtbufAddEllipse2